home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / comm / tcp / miamicontrol.lha / MiamiControl / Install < prev    next >
Encoding:
Text File  |  1998-10-17  |  5.4 KB  |  123 lines

  1. ;$VER: Miami Control Installer 1.9 (10.10.98) Copyright © Thomas Hurst 1998
  2.  
  3. Ask "Are you sure you wish to Install Miami Control?*nNo Files will be overwritten. Y/N"
  4. If warn
  5.         Echo "*nChecking for installation..."
  6.         If Not exists S:miamicontrol.rexx
  7.                 Echo "Not found, installing..."
  8.                 Echo "*nChecking for required files... " NOLINE
  9.                 set probs 0
  10.                 If exists Miami:Miami
  11.                         Version >NIL: Miami:Miami VERSION 3
  12.                         If warn
  13.                                 Ask "Miami other than version 3 detected!*nMiamiControl may not function correctly. Continue? Y/N"
  14.                                 If not warn
  15.                                         Echo "Quitting.  No changes to your system have been made"
  16.                                         Wait 3
  17.                                         Quit 0
  18.                                 Endif
  19.                         Endif
  20.                 Else
  21.                         Ask "WARNING!*NMiami not detected! Continue anyway? Y/N"
  22.                         If not warn
  23.                                 Echo "Quitting. No changes to your system have been made"
  24.                                 Wait 3
  25.                                 Quit 0
  26.                         Endif
  27.                 Endif
  28.                 If not exists c:requeststring
  29.                         Echo "*nRequestString not found in path! Installing..." NOLINE
  30.                         Copy files/RequestString c:
  31.                         Echo "Done!"
  32.                 Else
  33.                     Echo "RequestString detected!*nChecking version...*n"
  34.                     Echo "Your version:        `Version c:requeststring`"
  35.                     Echo "Recommended version: `Version files/RequestString`"
  36.                     Echo " "
  37.                     Echo "If the above lines differ you may need to install the included version of RequestString.*n*nSetCosts may not function correctly without it!"
  38.                     Ask "Install recommended version (Old one will be backed up)? y/n"
  39.                     If warn
  40.                         rename c:RequestString C:RequestString.bak
  41.                         Copy files/RequestString c:
  42.                     Endif
  43.                 Endif
  44.  
  45.                 if not exists libs:rexxsupport.library
  46.                     Echo "Library missing!*nInstalling rexxsupport.library..."
  47.                     copy libs/rexxsupport.library libs:
  48.                 endif
  49.                 if not exists libs:rexxreqtools.library
  50.                     set probs 1
  51.                     Echo "Library missing!*nInstalling rexxreqtools.library..."
  52.                     copy libs/rexxreqtools.library libs:
  53.                 endif
  54.  
  55.                 if $probs eq 0
  56.                     Echo "All files found!*n"
  57.                 else
  58.                     Echo "Not all files found!*n"
  59.                 endif
  60.                 Echo "Checking ARexx port... " NOLINE
  61.                 Set RC 0
  62.                 Rx rexxtest.rexx >NIL:
  63.                 If $RC EQ 5
  64.                         Set probs 1
  65.                         Ask "Not found!*nARexx does not appear to be operating!*nMiami Control absolutely needs ARexx to function.*nContinue? Y/N"
  66.                         If NOT Warn
  67.                                 Echo "Quitting..."
  68.                                 Wait 3
  69.                                 Quit 0
  70.                         Endif
  71.                 Else
  72.                         Echo "Port is active!"
  73.                 Endif
  74.  
  75.                 If $probs EQ 1
  76.                         Echo "*nSome problems have been detected. Miami Control may not function properly."
  77.                 Else
  78.                         Echo "*nSystem requirements have been passed!"
  79.                 Endif
  80.                 Echo "*nInstalling...*n"
  81.                 Echo "Copying miamicontrol.rexx to S:miamicontrol.rexx"
  82.                 Copy files/miamicontrol.rexx S:miamicontrol.rexx
  83.  
  84.                 if exists s:phonelog.log
  85.                     Echo "*e[7mWarning! Logfile detected!*nIf you are upgrading from a previous version of Miami Control, you MUST rename it!*e[0m"
  86.                     Ask "Are you upgrading from a previous version of Miami Control? (Y/N)"
  87.                     if warn
  88.                         If not exists S:Phonelog.log.old
  89.                             Echo "Backing up s:Phonelog.log to s:Phonelog.log.old..." NOLINE
  90.                             rename s:Phonelog.log s:Phonelog.log.old >NIL
  91.                             if not warn
  92.                                 Echo "Done!"
  93.                             else
  94.                                 Echo "Error!*Please rename it manually!!!!!"
  95.                             endif
  96.                         endif
  97.                     endif
  98.                  endif
  99.  
  100.                 Echo "*n*nMiami Control has been installed."
  101.                 Echo "Running this script again will remove it."
  102.  
  103.                 Echo "*n*e[7mYou should now run SetCosts and set your call charges.*e[0m"
  104.  
  105.                 Echo "*nThis window will self destruct in 5 seconds..."
  106.                 Wait 5
  107.                 Quit 0
  108.         Else
  109.                 Ask "Previous installation detected. Uninstall Miami Control? Y/N"
  110.                 If Warn
  111.                         Delete S:miamicontrol.rexx
  112.                         Echo "Uninstall complete!"
  113.                         Quit 0
  114.                 Else
  115.                         Echo "Quitting"
  116.                         Wait 1
  117.                         Quit 0
  118.                 Endif
  119.         Endif
  120. Else
  121.         Echo "Quitting..."
  122. Endif
  123.